package com.glasses.primework;

import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import org.primefaces.model.chart.MeterGaugeChartModel;

@ManagedBean
public class MetergaugeBean {
    private final MeterGaugeChartModel model;
    
    public MetergaugeBean() {
        List<Number> intervals = new ArrayList<Number>(){{
        add(20);
        add(50);
        add(120);
        add(220);
        }};
        model = new MeterGaugeChartModel(140, intervals);
        model.setTitle("MeterGauge Chart");
        model.setGaugeLabel("km/h");
    }
    
    public MeterGaugeChartModel getModel() {
        return model;
    }
}